home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Mania 4
/
MacMania 4.toast
/
/
Tools&Utilities
/
zip-it-133
/
Goodies
/
macszip
next >
Wrap
Text File
|
1994-01-21
|
518b
|
31 lines
#! /bin/sh
# Shell script to zip, MacBinarize, and ZMODEM download files.
if [ $# -lt 1 ]; then
echo
echo 'Usage: macszip directory|filename...'
echo
exit 1
fi
td=tmp/`basename $0`.$USER.$$
mkdir /$td
fn=`basename $1`
zip -r /$td/$fn.zip "$@"
cd /$td
mv $fn.zip $fn.zip.data
MAC_EDITOR='ZIP '
MAC_FILETYPE='ZIP '
MAC_DLOAD_DIR=.
MAC_EXT=.bin
export MAC_EDITOR MAC_FILETYPE MAC_DLOAD_DIR MAC_EXT
mcvert -Dd $fn.zip && sz -b -l 1024 $fn.zip.bin
sendrc=$?
cd ..
rm -r /$td || sendrc=$?
exit $sendrc